package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.pojo.Role;
import org.springframework.web.bind.annotation.RequestBody;

public interface RoleService {
    public PageResult findPage(QueryPageBean queryPageBean);

    public Result getAllPermission();

    public Result getAllMenu();

    public Result add(Integer []checkitemIds,Integer []checkitemId1s, Role role);

    public Result findById(Integer userId);

    public Result permissionIds(Integer roleId);

    public Result findRoleByMenuId(Integer roleId);

    public Result edit(Integer[] checkitemIds, Integer[] checkitemId1s, Role role);

    public Result delete(Integer roleId);
}
